package com.rsstuan.data;

import java.util.Date;

import com.rsstuan.storage.data.ArticleStorageData;

public class ArticleData {
	
	private String title;
	
	private String author;
	
	private String link;
	
	private Date pubDate;
	
	private String description;
	
	private byte[] digest;
	
	

	public ArticleData() {
		
	}
	public ArticleData(ArticleStorageData data) {
		this.title = data.getTitle();
		this.author = data.getAuthor();
		this.link = data.getLink();
		this.pubDate = data.getPubDate();
		this.description = data.getDescription();
		this.digest = data.getDigest();
		
	}
	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getAuthor() {
		return author;
	}

	public void setAuthor(String author) {
		this.author = author;
	}

	public String getLink() {
		return link;
	}

	public void setLink(String link) {
		this.link = link;
	}

	public Date getPubDate() {
		return pubDate;
	}

	public void setPubDate(Date pubDate) {
		this.pubDate = pubDate;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}
	public void setDigest(byte[] digest) {
		this.digest = digest;
	}
	public byte[] getDigest() {
		return digest;
	}
	

	
}
